New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ini-parser

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ini-parser

A better .ini files parser

  • 0.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
586
decreased by-21.97%
Maintainers
1
Weekly downloads
 
Created
Source

Node ini-parser

Parse .ini files

Install

npm install ini-parser

Usage

var parser = require('ini-parser')

parse.parse(String)

parser.parseFile('path/to/file', function(error, data){
	// do something
})

parse.parseFileSync('path/to/file')

Example

var parser = require('ini-parser')

console.log( parser.parseFileSync('rythmbox.desktop') )

{
	"Desktop Entry": {
		"Name": "Rhythmbox",
		"GenericName": "Music Player",
		"X-GNOME-FullName": "Rhythmbox Music Player",
		"Comment": "Play and organize your music collection",
		"Exec": "rhythmbox %U",
		"Terminal": "false",
		"Type": "Application",
		"Icon": "rhythmbox",
		"X-GNOME-DocPath": "rhythmbox/rhythmbox.xml",
		"Categories": "GNOME;GTK;AudioVideo;",
		"MimeType": "application/x-ogg;application/ogg;audio/x-vorbis+ogg;audio/x-scpls;audio/x-mp3;audio/x-mpeg;audio/mpeg;audio/x-mpegurl;audio/x-flac;",
		"Keywords": "Mp3;Audio;CD;MTP;Podcast;DAAP;Playlist;Ipod;",
		"StartupNotify": "true",
		"X-GNOME-Bugzilla-Bugzilla": "GNOME",
		"X-GNOME-Bugzilla-Product": "rhythmbox",
		"X-GNOME-Bugzilla-Component": "general",
		"X-GNOME-Bugzilla-OtherBinaries": "rhythmbox-client;rhythmbox-metadata;",
		"X-GNOME-Bugzilla-Version": "2.96",
		"Actions": "Play;Pause;Next;Previous;",
		"X-Ubuntu-Gettext-Domain": "rhythmbox"
	},
	
	"Desktop Action Play": {
		"Name": "Play",
		"Exec": "rhythmbox-client --play"
	},
	
	"Desktop Action Pause": {
		"Name": "Pause",
		"Exec": "rhythmbox-client --pause"
	},
	
	"Desktop Action Next": {
		"Name": "Next",
		"Exec": "rhythmbox-client --next"
	},
	
	"Desktop Action Previous": {
		"Name": "Previous",
		"Exec": "rhythmbox-client --previous"
	}
}

file rhythmbox.desktop
[Desktop Entry]
Name=Rhythmbox
GenericName=Music Player
X-GNOME-FullName=Rhythmbox Music Player
Comment=Play and organize your music collection
Exec=rhythmbox %U
Terminal=false
Type=Application
Icon=rhythmbox
X-GNOME-DocPath=rhythmbox/rhythmbox.xml
Categories=GNOME;GTK;AudioVideo;
MimeType=application/x-ogg;application/ogg;audio/x-vorbis+ogg;audio/x-scpls;audio/x-mp3;audio/x-mpeg;audio/mpeg;audio/x-mpegurl;audio/x-flac;
Keywords=Mp3;Audio;CD;MTP;Podcast;DAAP;Playlist;Ipod;
StartupNotify=true
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=rhythmbox
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-OtherBinaries=rhythmbox-client;rhythmbox-metadata;
X-GNOME-Bugzilla-Version=2.96
Actions=Play;Pause;Next;Previous;
X-Ubuntu-Gettext-Domain=rhythmbox

[Desktop Action Play]
Name=Play
Exec=rhythmbox-client --play

[Desktop Action Pause]
Name=Pause
Exec=rhythmbox-client --pause

[Desktop Action Next]
Name=Next
Exec=rhythmbox-client --next

[Desktop Action Previous]
Name=Previous
Exec=rhythmbox-client --previous

Keywords

FAQs

Package last updated on 06 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc